package ai.people.core.feign.api.youtube;

import ai.people.netmon.framework.domain.youtube.probe.entity.YoutubeAccount;
import ai.people.netmon.framework.model.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * youtube 探测 用户 feign接口
 *
 * @author zhenglin
 * @since 2022/3/24
 */
@FeignClient(value = "NM-SERVICE-YOUTUBE", path = "/youtube/probe/user")
public interface YoutubeProbeUserClient {

    /**
     * 批量保存用户
     *
     * @param youtubeAccount youtube帐户
     * @return {@link Result}<{@link ?}>
     */
    @PostMapping("/batchSave")
    Result<?> batchSaveUser(@RequestBody List<YoutubeAccount> youtubeAccount);
}
